package com.hgyc.mom.common.exception;

import org.springframework.http.HttpStatus;

import static org.springframework.http.HttpStatus.BAD_REQUEST;

/**
 * @author: fengwj
 * @date: 2019/12/3 0003 11:41
 */
public class ExportException extends RuntimeException {

    private Integer status = BAD_REQUEST.value();

    public ExportException(String msg){
        super(msg);
    }

    public ExportException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }

}
